
function getData(tabname,iRelatePub)
{
   var url,style,temp;
   temp="";

   if (iRelatePub==null) 
     iRelatePub=0;
   for (i=1;i<=iRelatePub;i++)
     temp+="../"; 
     url=temp+"component/dropdownlist/index.jsp?dbgrid="+tabname;
    
	var ele;
	ele=window.event.srcElement;
	if(ele.tagName.toUpperCase()=="IMG" || ele.tagName.toUpperCase()=="DIV")
	{
		y=window.event.screenY;
		x=window.event.screenX-100;
	}else
	{
		x=getLeft(window.event.srcElement)+window.screenLeft+window.event.srcElement.offsetWidth/3;
		y=getTop(window.event.srcElement)+window.screenTop+window.event.srcElement.offsetHeight/2;
	}
    style="status:no;help:no;dialogWidth:1;dialogHeight:1;dialogTop:"+y+";dialogLeft:"+x;
    //style="help:no;status:no;dialogWidth:20;dialogHeight:25";
    return window.showModalDialog(url,null,style);
}